
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                template="/mobile/templates/blankPageTemp.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:pm="http://primefaces.org/mobile" 
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j">

    <ui:define name="page">
        <pm:view id="clientData">
            <pm:header title="Dane rachunkowe">             
                <f:facet name="left"><p:button value="Wróć" icon="back" onclick="PrimeFaces.back()"/></f:facet>
            </pm:header>
            <pm:content>
                <h:form prependId="false" >
                    <p:dataTable var="acc" value="#{accountingDataBean.allByClient}"> 
                        <f:attribute name="columnToggle" value="true" />
                        <f:attribute name="btnText" value="Wyświetlane kolumny" /> 

                        <p:column headerText="Nazwa">          
                            <h:outputText value="#{acc.name}" />  
                        </p:column>  


                        <p:column headerText="Typ">  
                            <h:outputText value="#{accountingDataBean.getLabelFromPayerValue(acc)}" />  
                        </p:column>      


                        <p:column headerText="Miasto" >           
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.city}" />  
                        </p:column>  

                        <p:column headerText="Kod pocztowy">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.zipNumber}" />  
                        </p:column>  

                        <p:column headerText="Ulica">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.street}" />  
                        </p:column>  
                        
                        <p:column headerText="Nr budynku">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.houseNumber}" />  
                        </p:column>  
                        
                        <p:column headerText="Nr lokalu">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.localNumber}" />  
                        </p:column>  
                        
                          <p:column headerText="Nip">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.nipNumber}" />  
                        </p:column>  
                        
                           <p:column headerText="Telefon">  
                            <f:attribute name="priority" value="2" />
                            <h:outputText value="#{acc.phone}" />  
                        </p:column>  
                    </p:dataTable> 


                </h:form>




            </pm:content>
        </pm:view>

    </ui:define>
</ui:composition>